package com.graduation.ucenter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.base.model.R;
import com.graduation.ucenter.model.dto.RegisterDto;
import com.graduation.ucenter.model.po.Role;
import com.graduation.ucenter.model.po.User;

import java.util.List;

public interface UserService extends IService<User> {

    R<String> register(User user);

    R<List<User>>listUser(Integer page,Integer pageSize,User user);

    R<String> disableUser(Integer userId);

    R<String> enableUser(Integer userId);

    R<String> addBindRoleByUserId(Integer roleId, Integer userId);

    R<String> removeBindRoleByUserId(Integer roleId, Integer userId);

    R<String> addUser(User user);

    R<String> commonRegister(RegisterDto registerDto);
}
